const _import = require('./_import_' + process.env.NODE_ENV);

import FrontLayout from '../views/front/layout/FrontLayout';

export default [
    {
        path: '/f',
        component: FrontLayout,
        hidden: true,
        children: [{
            path: '',
            component: _import('front/Homepage'),
            name: 'homepage'
        }, {
            path: '/f/login',
            component: _import('front/Login'),
            name: 'login'
        }, {
            path: '/f/registry',
            component: _import('front/Registry'),
            name: 'registry'
        }, {
            path: '/f/daily-supply-price',
            component: _import('front/DailySupplyPrice'),
            name: 'DailySupplyPrice'
        }, {
            path: '/f/daily-purchase-price',
            component: _import('front/DailyPurchasePrice'),
            name: 'DailyPurchasePrice'
        }, {
            path: '/f/help-center',
            component: _import('front/HelpCenter'),
            name: 'HelpCenter'
        }, {
            path: '/f/contact-us',
            component: _import('front/ContactUs'),
            name: 'ContactUs'
        }, {
            path: '/f/recommended-supplier',
            component: _import('front/RecommendedSupplier'),
            name: 'RecommendedSupplier'
        }, {
            path: '/f/search-result',
            component: _import('front/SearchResult'),
            name: 'SearchResult'
        }, {
            path: '/u/user',
            component: _import('front/UserCenter'),
            children: [
                {
                    path: '',
                    component: _import('front/user_center/UserCenterInfo')
                },
                {
                    path: 'info',
                    component: _import('front/user_center/UserCenterInfo')
                },
                {
                    path: 'auth',
                    component: _import('front/user_center/UserCenterAuth')
                },
                {
                    path: 'secure',
                    component: _import('front/user_center/UserCenterSecure')
                },
                {
                    path: 'want',
                    component: _import('front/user_center/UserCenterWant')
                },
                {
                    path: 'sell',
                    component: _import('front/user_center/UserCenterSell')
                },
                {
                    path: 'want-list',
                    component: _import('front/user_center/UserCenterWantList')
                },
                {
                    path: 'sell-list',
                    component: _import('front/user_center/UserCenterSellList')
                }
            ]
        },
        {
            path: '/f/article/:id',
            component: _import('front/ArticleView'),
        },
        {
            path: '/f/info/:id',
            component: _import('front/InfoView'),
        },
        {
            path: '/f/banner/:id',
            component: _import('front/BannerView'),
        },
        {
            path: '/f/supplier/:id',
            component: _import('front/SupplierView'),
        },
        ]
    }
];
